/* eslint-disable valid-typeof */
var staticStrUndefined = require('./staticStrUndefined')

var supportFormData = typeof FormData !== staticStrUndefined
// 自己的实现
// function isFormData(obj) {
//   return supportFormData && obj?.constructor === FormData
// }

// 源码实现
function isFormData(obj) {
  return supportFormData && obj instanceof FormData
}

module.exports = isFormData
